/*
 * Copyright 2016 Wealth Inc. All rights reserved.
 */
 package com.wealth.merchant.repository;

import java.util.List;

import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import com.wealth.merchant.entity.BusinessDistrict;

import iaas.repository.BaseRepository;

/**
 * @author chan
 * @version 1.0
 * @since 1.0
 */
 
@Repository
public interface BusinessDistrictDao extends BaseRepository<BusinessDistrict, Long> ,JpaSpecificationExecutor<BusinessDistrict>{


	List<BusinessDistrict> findByParentIdIsNullAndStatus(Integer status);
	
	List<BusinessDistrict> findByStatus(Integer status);

	List<BusinessDistrict> findByParentIdAndStatus(Long parentId,Integer status);
}

